import Vue from 'vue'
import App from './App'
import uView from 'uview-ui';
import { myRequest , baseURL } from './util/request.js';
import { uploadFiles,uploadImage } from './util/api.js';
import util from './util/util.js';

import Loading from './components/loading.vue'

Vue.component('Loading',Loading)
Vue.use(uView);
Vue.config.productionTip = false
Vue.prototype.$myRuquest = myRequest;
Vue.prototype.$baseURL = baseURL;
Vue.prototype.$uploadFiles=uploadFiles
Vue.prototype.$uploadImage=uploadImage
Vue.prototype.$util = util;
App.mpType = 'app'
//引入vuex
import store from './store'
//把vuex定义成全局组件
Vue.prototype.$store = store
const app = new Vue({
    ...App,
		store
})
app.$mount()